// components/tabbars/tabbars.js
Component({
  /**
   * 组件的属性列表
   */
  
  properties: {
    selecticon:{
      type:String
    },
  },

  /**
   * 组件的初始数据
   */
  data: {
    roleId: "",
    list: [{
        "selectedIconPath": "/static/images/components/iconfont/wproject1.png",
        "iconPath": "/static/images/components/iconfont/wproject.png",
        "pagePath": "/pagesA/waiters/waiters",
        "text": "服务项目"
      },
      {
        "selectedIconPath": "/static/images/components/iconfont/worder1.png",
        "iconPath": "/static/images/components/iconfont/worder.png",
        "pagePath": "/pagesA/waitersorder/waitersorder",
        "text": "服务订单"
      }
    ],
  },

  /**
   * 组件的方法列表
   */
  methods: {
    heldLink(e){
      var index = e.currentTarget.dataset.i;
      var url = e.currentTarget.dataset.url;
      wx.redirectTo({ url })
    },
  }
})